package com.twu.biblioteca;

public class Movie
{
    String movieName;
    int yearOfRelease;
    String director;
    String ratings;
    int numberOfCopies;

    Movie(String movieName,int yearOfRelease,String director,String ratings,int numberOfCopies)
    {
        this.movieName=movieName;
        this.yearOfRelease=yearOfRelease;
        this.director=director;
        this.ratings=ratings;
        this.numberOfCopies=numberOfCopies;

    }

    public String getMovieName()
    {
        return movieName;
    }

    public int getYearOfRelease()
    {
        return yearOfRelease;
    }

    public String getDirector()
    {
        return director;
    }

    public String getRatings()
    {
        return ratings;
    }

    public int getNumberOfCopies()
    {
        return numberOfCopies;
    }

    public int updateNumberOfCopies()
    {
        numberOfCopies--;
        return numberOfCopies;
    }


}
